package com.anxinr.test;


import com.anxinr.pool.InfoClass;

/**
 * @author anxinr
 */
public class FP {
    public static String string = "aaaa,bbbb,cccc,dddd";

    public static void main(String[] args) {
        /**
         * 业务场景  传送一个视频
         * 有限制   大小为  4 个字符串
         * 如果单线程传送数据，大小受到限制 无法完成
         * 如果使用分片   把数据拆分    成符合限制大小的数据 然后传输
         * */
        InfoClass c1 = new InfoClass();
        InfoClass c2 = new InfoClass();
        InfoClass c3 = new InfoClass();
        InfoClass c4 = new InfoClass();
        Thread thread1 = new Thread(c1,"c1");
        Thread thread2 = new Thread(c2,"c2");
        Thread thread3 = new Thread(c3,"c3");
        Thread thread4 = new Thread(c4,"c4");
        thread1.start();
        thread2.start();
        thread3.start();
        thread4.start();

    }
}
